Skip to content

fix(files_reminder): passed reminder handling - #59228

Merged
skjnldsv merged 3 commits into
masterfrom
fix/reminder-past
Aug 19, 2026
Merged

fix(files_reminder): passed reminder handling#59228
skjnldsv merged 3 commits into
masterfrom
fix/reminder-past

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Mar 26, 2026

Copy link
Copy Markdown
Member

Summary

This PR solved two logic issues

  1. we still return passed reminder from the API. We should just assume passed ones are void and basically gone
  2. we assumed a 404 on reminder clear request was an issue, but that's just expected outcome. We can safely disregard this.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@skjnldsv skjnldsv added this to the Nextcloud 34 milestone Mar 26, 2026
@skjnldsv skjnldsv self-assigned this Mar 26, 2026
@skjnldsv
skjnldsv requested review from a team as code owners March 26, 2026 13:03
@skjnldsv
skjnldsv requested review from nfebe, sorbaugh and szaimen and removed request for a team March 26, 2026 13:03
@skjnldsv
skjnldsv requested review from CarlSchwan and leftybournes and removed request for a team March 26, 2026 13:03
@skjnldsv

Copy link
Copy Markdown
Member Author

/backport to stable33

@szaimen szaimen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@skjnldsv
skjnldsv force-pushed the fix/reminder-past branch from bb962d6 to cc7c56c Compare March 26, 2026 13:24
@skjnldsv

Copy link
Copy Markdown
Member Author

/compile rebase

Comment thread apps/files_reminders/lib/Service/ReminderService.php
const relativeDueDate = formatRelativeTime(customDueDate.value ?? 0)
return (nowDate.value.getTime() >= (customDueDate.value?.getTime() ?? 0))
// TRANSLATORS: {relativeDueDate} will be replaced with a relative time, e.g. "2 hours ago" or "in 3 days".
? t('files_reminders', 'We reminded you of this file {relativeDueDate}', { relativeDueDate })

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the purpose of this "historical reminder" message. Is it just a fallback for stale paths and/or triggering test(s)?

Do we intentionally want the modal to present past reminders as historical state when they slip through, or should it instead behave as if no reminder exists?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's just that we don't handle the passed reminders logic on the front-end. The backend does it now. So I'm making the front compliant to whatever data.
It's more like a failsafe.

Comment thread apps/files_reminders/src/components/SetCustomReminderModal.vue
Comment thread apps/files_reminders/src/components/SetCustomReminderModal.vue
@skjnldsv
skjnldsv requested a review from joshtrichards March 30, 2026 06:30
@skjnldsv
skjnldsv enabled auto-merge March 30, 2026 06:30
@skjnldsv
skjnldsv force-pushed the fix/reminder-past branch from 90e8b39 to fdde361 Compare April 1, 2026 07:58
@skjnldsv

Copy link
Copy Markdown
Member Author

/compile rebase

This was referenced Jun 5, 2026
@susnux susnux modified the milestones: Nextcloud 34.0.1, Nextcloud 35 Jun 9, 2026
This was referenced Aug 12, 2026
@susnux

susnux commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

/compile rebase

skjnldsv and others added 3 commits August 19, 2026 15:50
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Co-authored-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@skjnldsv
skjnldsv merged commit 1c3dfbe into master Aug 19, 2026
207 of 213 checks passed
@skjnldsv
skjnldsv deleted the fix/reminder-past branch August 19, 2026 22:05
@susnux

susnux commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

/backport to stable34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Once a reminder for a file has passed, it does not disappear and cannot be deleted

6 participants